import api from "@/api/index.js"

export default async function Inituser(user) {
    if (!user.avatar) {
        user.avatar = "https://img2.baidu.com/it/u=1210416302,3260530728&fm=253&fmt=auto&app=138&f=GIF?w=192&h=178";
        await api.user.updata(user)
    }
}
